const mongoose = require('mongoose')
const Message = require('../../model/message')

module.exports = async (req, res) => {
    const id = req.params.id
    try {
        var data = await Message.updateOne({ _id: id },{status:true})
    } catch (error) {
        return res.send({
            data: null,
            meta: {
                status: 403,
                msg: '修改失败·'
            }
        })
    }
    res.send({
        data: null,
        meta: {
            status: 203,
            msg: '修改成功'
        }
    })

}